package e2q.security.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * E2qSmUserParam entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "e2q_sm_user_param")
public class E2qSmUserParam implements java.io.Serializable {

	// Fields

	private Long id;
	private E2qSmUserMapper e2qSmUserMapper;
	private String umapParamName;
	private String umapParamValue;
	private Short umapDisabled;

	// Property accessors
	@Override
	public String toString() {
		return id.toString();
	}
	@Id
	@GeneratedValue(generator = "pk")
	@Column(name = "upamId")
	@GenericGenerator(name = "pk", strategy = "e2q.web.orm.IdGenerator")
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne
	@JoinColumn(name = "upamUmapId", nullable = false)
	public E2qSmUserMapper getE2qSmUserMapper() {
		return this.e2qSmUserMapper;
	}

	public void setE2qSmUserMapper(E2qSmUserMapper e2qSmUserMapper) {
		this.e2qSmUserMapper = e2qSmUserMapper;
	}

	@Column(name = "umapParamName")
	public String getUmapParamName() {
		return this.umapParamName;
	}

	public void setUmapParamName(String umapParamName) {
		this.umapParamName = umapParamName;
	}

	@Column(name = "umapParamValue")
	public String getUmapParamValue() {
		return this.umapParamValue;
	}

	public void setUmapParamValue(String umapParamValue) {
		this.umapParamValue = umapParamValue;
	}

	@Column(name = "umapDisabled")
	public Short getUmapDisabled() {
		return this.umapDisabled;
	}

	public void setUmapDisabled(Short umapDisabled) {
		this.umapDisabled = umapDisabled;
	}

}